﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NBusiness.Query;

namespace NBusiness.Data.Testing.Mocks
{
    class MockLoader : ILoader
    {
        #region ILoader Members

        public T GetValue<T>(string column)
        {
            MethodCall.Calls.Add(new MethodCall(
                "GetValue",
                new { Name = "column", Value = column }));

            return default(T);
        }

        public bool ContainsValue(string column)
        {
            MethodCall.Calls.Add(new MethodCall(
                "ContainsValue",
                new { Name = "column", Value = column }));

            return true;
        }

        public bool Read()
        {
            MethodCall.Calls.Add(new MethodCall(
                "Read"));

            return true;
        }

        public bool Next()
        {
            MethodCall.Calls.Add(new MethodCall(
                "Next"));

            return true;
        }

        #endregion

        #region IDisposable Members

        public void Dispose()
        {
            MethodCall.Calls.Add(new MethodCall("Dispose"));
        }

        #endregion
    }
}
